In this scenario, the app will raise toasts which stay on screen longer than the default toast duration.

Long-duration toasts stay on the screen longer than standard toasts. They are useful for incoming phone calls and alarms. For these toasts, accompanying audio can be either looped or played only once. Long-duration toasts time out after 25 seconds, while normal toasts decay after only a few seconds.



Since notifications are just XML, you can create them in many different ways. Above, the NotificationsExtensions library is used. You can also create notifications with strings:

When you create a toast, the XML will appear here